import { Device } from "@/api/interface/iot";
import http from "@/api";
import { ResPage } from "../../interface";

/**
 * @name 硬网关管理模块
 */

// * 获取硬列表
export const getHistoryDataList = (params: Device.ReqFindData, loading?: boolean) => {
	return http.get<ResPage<Device.ResDataInfo[]> | Device.ResDataInfo[]>(`/device/historydata/get`, params, {
		headers: { noLoading: !loading }
	});
};
export const getHistoryData = (params: Device.ReqFindData, loading?: boolean) => {
	return http.get<ResPage<Device.ResDataInfo[]>>(`/device/historydata/find`, params, { headers: { noLoading: !loading } });
};
